package xyz.wanwanwan.www.hrm.service;

import xyz.wanwanwan.www.hrm.domain.CoursePromotion;

import java.util.List;

public interface ISavePromotionToRedis {
    /**
     * 存储促销
     * @param coursePromotion
     */
    void savePromotion(CoursePromotion coursePromotion);

    /**
     * 获取促销
     * @return
     */
    List<CoursePromotion> getListCoursePromotion();

    /**
     * 单促销促销
     * @param
     * @return
     */
    byte[] getBuyCoursePromotion(Long id);
}
